Tristan Van Berkom [Fri, 8 Oct 2010 13:27:02 +0000 (22:27 +0900)]
Removed call to get_preferred_size (widget, NULL, NULL);
This was another case of making sure size-request was called
before other code was doing get_child_requisition(), now caching
is done via the same api so no need for that line.
Tristan Van Berkom [Fri, 8 Oct 2010 13:26:01 +0000 (22:26 +0900)]
Removed needless initial size request of children
Old code was probably doing size-request on all children initially,
and then calling get_child_requisition() in other passes, now these
are cached after the first request anyway.
Tristan Van Berkom [Fri, 8 Oct 2010 13:25:16 +0000 (22:25 +0900)]
Removed needless size-requesting of children (child sizes are ignored at request time).
Matthias Clasen [Fri, 8 Oct 2010 13:28:00 +0000 (09:28 -0400)]
Make GtkTable use gtk_container_handle_border_width
Matthias Clasen [Fri, 8 Oct 2010 06:18:15 +0000 (02:18 -0400)]
Add a migration guide section about resize grips
Matthias Clasen [Fri, 8 Oct 2010 05:37:33 +0000 (01:37 -0400)]
Get scrollbars out of the way of the window's resize grip
If there are both horizontal and vertical scrollbars, there is
an unused 'corner' into which the resize grip fits. Individual
scrollbars need to be shortened and moved to make room for the
resize grip.
Matthias Clasen [Fri, 8 Oct 2010 05:43:24 +0000 (01:43 -0400)]
Remove resize grip handling from GtkStatusbar
We remove the resize grip from GtkStatusbar, but keep the code
that makes the content avoid the grip, and adapt it to GtkWindow
grips.
The gtk_status_bar_set/get_has_resize_grip() functions and related
properties are removed.
Cody Russell [Thu, 30 Sep 2010 18:15:23 +0000 (13:15 -0500)]
Remove uses of gtk_statusbar_set_has_resize_grip()
This function is going away.
Matthias Clasen [Fri, 8 Oct 2010 05:08:24 +0000 (01:08 -0400)]
Fix resize grip drawing in GtkAssistant
Chain up in the draw() implementation of GtkAssistant to let
GtkWindow draw the resize grip. This avoids black resize grips
in GtkAssistant windows.
Matthias Clasen [Fri, 8 Oct 2010 05:43:03 +0000 (01:43 -0400)]
Add resize grips to GtkWindow
Allow any window to display a resize grip, in the south-east or
south-west corner, depending on text direction. This is implemented
as a shaped window that gets overlayed on top of whatever content
is there. We add api that allows widgets to avoid the resize grip,
if desired.
The ::has-resize-grip property controls if a window may display
a resize grip. It will only be displayed if the window is resizable
and not maximized.
The size and visual appearance of the resize grip is under theme
control, using the resize-grip-width/height style properties and
the paint_resize_grip style function.
Matthias Clasen [Thu, 7 Oct 2010 11:47:58 +0000 (07:47 -0400)]
Fix export of a few (currently unused) configure variables
Turns out that autoconf eats all the m4_define magic before
AC_INIT.
William Jon McCann [Thu, 7 Oct 2010 06:48:20 +0000 (02:48 -0400)]
gail: don't try to get stock id from images that aren't stock
Fixes assertion caused by
41d2a4d059d881d8d05419013ae4946a81b308cb
Tor Lillqvist [Wed, 6 Oct 2010 22:27:06 +0000 (01:27 +0300)]
Gail needs _gtk_cell_renderer_calc_offset
Tor Lillqvist [Wed, 6 Oct 2010 22:15:56 +0000 (01:15 +0300)]
Bypass the ms-windows engine for now
It requires massive changes to build again. I started, but gave
up. More insight is needed.
Tor Lillqvist [Wed, 6 Oct 2010 22:14:46 +0000 (01:14 +0300)]
Make it compile again for Windows
Stef Walter [Wed, 6 Oct 2010 20:13:40 +0000 (20:13 +0000)]
Remove reference to hooks in gtk_about_dialog_set_website() docs.
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Federico Mena Quintero [Wed, 6 Oct 2010 17:59:44 +0000 (12:59 -0500)]
Filechooser - In OPEN or SAVE mode, typing a plain folder name should switch to it
If you type 'subfolder/' and hit Enter, the file chooser will switch you to
it. But if you type just 'subfolder' without the trailing slash, apps would
receive *that* filename (e.g. file:///foo/bar/subfolder) as the response, and
they would likely print an error that they can't open that file (as it is
a folder). So, we change the file chooser's current folder to that subfolder
in this case.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Benjamin Otte [Wed, 6 Oct 2010 10:52:39 +0000 (12:52 +0200)]
widget: Fix GtkWidget::draw docs
width and height have been gone for a while...
Tristan Van Berkom [Wed, 6 Oct 2010 08:00:43 +0000 (17:00 +0900)]
Enhanced documentation description for GtkWrapBox (text by Murray Cumming).
Baurzhan Muftakhidinov [Wed, 6 Oct 2010 04:36:18 +0000 (10:36 +0600)]
Updates for Kazakh translation
John Ralls [Tue, 5 Oct 2010 23:18:25 +0000 (01:18 +0200)]
Replace GDK_Tab and GDK_ISO_Left_Tab with GDK_KEY equivalents
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631475
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Javier Jardón [Tue, 5 Oct 2010 23:09:23 +0000 (01:09 +0200)]
docs: visuals: Do not mention deprecated GdkRGB API's
Reported by Milan Bouchet-Valat in bug
https://bugzilla.gnome.org/show_bug.cgi?id=631473
Benjamin Otte [Tue, 5 Oct 2010 21:25:53 +0000 (23:25 +0200)]
docs: Dn't mark all signals in GtkWidgetClass as private
They are meant to be overwritten by subclasses after all.
Benjamin Otte [Tue, 5 Oct 2010 21:22:25 +0000 (23:22 +0200)]
viewport: Clip contents properly when called via gtk_widget_draw()
Benjamin Otte [Tue, 5 Oct 2010 20:36:35 +0000 (22:36 +0200)]
Revert "testgtk: Remove snapshot test"
This reverts commit
99c82af20a5204940ce2cb0f841be0d6f70a2778 and fixes
up things to compile again. Of course, the snapshotting now uses
gtk_widget_draw() instead.
Javier Jardón [Tue, 5 Oct 2010 20:52:31 +0000 (22:52 +0200)]
docs: reword GtkAdjustment short description
Federico Mena Quintero [Tue, 5 Oct 2010 19:41:51 +0000 (14:41 -0500)]
Handle the case where you type /blah/nonexistent in SELECT_FOLDER mode
Previously name_entry_get_parent_info_cb() would fail as it doesn't handle SELECT_FOLDER.
Now we just make that function act the same as for CREATE_FOLDER mode. In either
case, if you type "/blah/nonexistent" and hit Enter, you want a folder
with that name to be created (under the already-existing /blah).
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Stephen Shaw [Tue, 5 Oct 2010 17:59:45 +0000 (12:59 -0500)]
Clarify the name of a callback
The old save_entry_get_info_cb() was misnamed; it is actually used
to see if a file's presumed parent *is* a folder. So we rename
it to name_entry_get_parent_info_cb().
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Stephen Shaw [Tue, 5 Oct 2010 17:55:03 +0000 (12:55 -0500)]
bgo#629722 - file chooser should cope with typing a directory name and then Enter
file_exists_get_info_cb() used to let some actions fall through to
the code that checks for the file type of the selected file's parent
(e.g. to see if /foo/bar *is* indeed a folder if you type /foo/bar/baz).
However, we need to be more explicit for each file chooser action, as
in SELECT_FOLDER mode typing /foo/foldername and hitting Enter would not
give you an immediate selection, but rather the file chooser would
complain that it couldn't create that directory as it already exists.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Kibavuidi Nsiangani [Tue, 5 Oct 2010 19:52:42 +0000 (21:52 +0200)]
Added Kikongo translation
Kristian Rietveld [Tue, 5 Oct 2010 13:21:40 +0000 (15:21 +0200)]
Make set_cairo_surface_size a vfunc on GdkWindowImpl
Note the special implementation of this method on GdkOffscreenWindow
that makes sure its current surface is not destroyed.
Michael Natterer [Tue, 5 Oct 2010 11:05:56 +0000 (13:05 +0200)]
tests: don't call gtk_widget_get_allocation() on NULL children
Javier Jardón [Mon, 4 Oct 2010 16:48:47 +0000 (18:48 +0200)]
gtkmenu: Really fix menu code
Previous patch
f0039aa2a4367df95bda1b6cf3d4a735cafb4eb2
is not correct as it try to fix a bug introduced in commit
3a10216dd01c8d10df235b88c8942b2fda15689b
Christian Persch [Mon, 4 Oct 2010 14:36:43 +0000 (10:36 -0400)]
Fix a crash in menu code
https://bugzilla.gnome.org/show_bug.cgi?id=631311
Matthias Clasen [Mon, 4 Oct 2010 14:22:09 +0000 (10:22 -0400)]
Make GdkRectangle arguments in GtkCellRenderer use const consistently
https://bugzilla.gnome.org/show_bug.cgi?id=630900
Kristian Rietveld [Mon, 4 Oct 2010 09:43:16 +0000 (11:43 +0200)]
quartz: Emulate root window as 1x1 bitmap
We subclass GdkWindowImplQuartz into a new GdkRootWindowImplQuartz,
and override the get_context method in order to do this cleanly.
Also made release_context a virtual method, since the root window has
to release its CGContextRef differently compared to normal windows.
Javier Jardón [Mon, 4 Oct 2010 01:47:40 +0000 (03:47 +0200)]
docs: Move documentation to inline comments: colors
Javier Jardón [Mon, 4 Oct 2010 01:35:42 +0000 (03:35 +0200)]
docs: Move documentation to inline comments: pixbufs
Javier Jardón [Mon, 4 Oct 2010 01:19:43 +0000 (03:19 +0200)]
docs: Move documentation to inline comments: regions
Javier Jardón [Mon, 4 Oct 2010 01:04:09 +0000 (03:04 +0200)]
docs: Move documentation to inline comments: cairo_interaction
Javier Jardón [Mon, 4 Oct 2010 00:05:45 +0000 (02:05 +0200)]
docs: Move documentation to inline comments: GtkComboBox
Ignacio Casal Quinteiro [Sun, 3 Oct 2010 16:17:17 +0000 (18:17 +0200)]
Add missing vfuncs to gtknotebook.
Javier Jardón [Sun, 3 Oct 2010 17:50:11 +0000 (19:50 +0200)]
docs: Move documentation to inline comments: GtkNotebook
Žygimantas Beručka [Sun, 3 Oct 2010 13:21:32 +0000 (15:21 +0200)]
Updated Lithuanian translation by Aurimas Černius <aurisc4@gmail.com> and Rimas Kudelis <rq@akl.lt>
Žygimantas Beručka [Sun, 3 Oct 2010 13:15:53 +0000 (15:15 +0200)]
Updated Lithuanian translation by Aurimas Černius <aurisc4@gmail.com>
José Aliste [Sun, 3 Oct 2010 10:14:48 +0000 (12:14 +0200)]
textview: Fix clip usage
The previous code used cairo_clip_extents() and interpreted its
parameters wrong.
https://bugzilla.gnome.org/show_bug.cgi?id=631203
Javier Jardón [Sun, 3 Oct 2010 02:59:23 +0000 (04:59 +0200)]
docs: Latest 2.x release will be 2.24, not 2.22
Javier Jardón [Sun, 3 Oct 2010 01:41:44 +0000 (03:41 +0200)]
docs: Use gtk_widget_get_preferred_size() instead gtk_size_request_get_preferred_size()
GtkSizeRequest interface is now merged in GtkWidget
Garrett Regier [Sat, 2 Oct 2010 23:19:55 +0000 (01:19 +0200)]
docs: Move documentation to inline comments: GtkEntryBuffer
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=617320
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Javier Jardón [Sat, 2 Oct 2010 22:58:38 +0000 (00:58 +0200)]
docs: Move documentation to inline comments: GtkTooltip
Javier Jardón [Sat, 2 Oct 2010 22:28:54 +0000 (00:28 +0200)]
docs: Move documentation to inline comments: GtkToolbar
Garrett Regier [Sat, 2 Oct 2010 19:17:48 +0000 (21:17 +0200)]
docs: Move documentation to inline comments: GtkComboBoxEntry
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=617308
Signed-off-by: Javier Jardón <jjardon@gnome.org>
William Jon McCann [Sat, 2 Oct 2010 19:45:46 +0000 (15:45 -0400)]
gail: use a weak pointer instead of an invalid destroy signal
Matthias Clasen [Sat, 2 Oct 2010 03:29:00 +0000 (23:29 -0400)]
Bump version to 2.91.1
Matthias Clasen [Sat, 2 Oct 2010 01:43:23 +0000 (21:43 -0400)]
Fix a reference in the gdk_pixbuf_get_from_surface docs
Matthias Clasen [Sat, 2 Oct 2010 01:36:16 +0000 (21:36 -0400)]
More distcheck fixes
Benjamin Otte [Sat, 2 Oct 2010 01:34:42 +0000 (03:34 +0200)]
gail: Fix menu emission hooks
Ref the GtkmenuItem class, so we can add emission hooks. And actually
add the emission hooks again that were removed in
7c140feb6b18c6e158b83356370a85864758c4f9.
Benjamin Otte [Sat, 2 Oct 2010 00:47:55 +0000 (02:47 +0200)]
gdk: Make gdk_pixbuf_get_from_*() bindable
The ownership of the return value for gdk_pixbuf_get_from_window() and
gdk_pixbuf_get_from_surface() was determined by the first argument.
Because that is an ugly design and the functions are new to GTK3, we
decided to adapt them.
And that adaptation was quite easy since almost no one passses anything
but NULL as the first argument.
Matthias Clasen [Sat, 2 Oct 2010 00:02:35 +0000 (20:02 -0400)]
Fix distcheck
Don't include config.h in headers, it doesn't work.
Matthias Clasen [Fri, 1 Oct 2010 22:46:09 +0000 (18:46 -0400)]
Fix make dist
Matthias Clasen [Fri, 1 Oct 2010 22:27:53 +0000 (18:27 -0400)]
Update NEWS for 2.91.0
Matthias Clasen [Fri, 1 Oct 2010 19:58:09 +0000 (15:58 -0400)]
Update po files
Colin Walters [Fri, 1 Oct 2010 21:29:20 +0000 (17:29 -0400)]
Distribute autogen.sh
This makes it easier for OS vendors to always invoke autogen.sh
for building, regardless of building from legacy tarballs or
git snapshots.
Matthias Clasen [Fri, 1 Oct 2010 18:57:25 +0000 (14:57 -0400)]
Set version to 2.91.0
Having an odd minor helps some tools which assume 'even minor == stable'
and 2.91 will keep us in sync with the wider GNOME versioning.
Matthias Clasen [Fri, 1 Oct 2010 18:54:11 +0000 (14:54 -0400)]
Migration guide: Add an example for creating custom cursors
Matthias Clasen [Fri, 1 Oct 2010 17:46:39 +0000 (13:46 -0400)]
Revert an erroneous change
Matthias Clasen [Fri, 1 Oct 2010 17:10:35 +0000 (13:10 -0400)]
GTK docs: Update width-for-height docs
Some places did not get updated after the recent rename-and-GtkWidget-merge.
Matthias Clasen [Fri, 1 Oct 2010 17:05:12 +0000 (13:05 -0400)]
GTK docs: various fixups
Matthias Clasen [Fri, 1 Oct 2010 13:39:10 +0000 (09:39 -0400)]
Drop GdkSpan type
GdkSpan is not used anywhere.
Matthias Clasen [Fri, 1 Oct 2010 13:38:36 +0000 (09:38 -0400)]
GDK docs: Improve gdk_pixbuf_get_from_window docs
Matthias Clasen [Fri, 1 Oct 2010 13:10:52 +0000 (09:10 -0400)]
GDK docs: help gtk-doc understand gdk_window_invalidate_maybe_recurse
Matthias Clasen [Fri, 1 Oct 2010 12:16:38 +0000 (08:16 -0400)]
GDK docs: improve the gdk_x11_display_error_trap_push docs
Matthias Clasen [Fri, 1 Oct 2010 12:09:31 +0000 (08:09 -0400)]
GDK docs: Clean out some dead symbols
Matthias Clasen [Fri, 1 Oct 2010 11:37:26 +0000 (07:37 -0400)]
GdkVisual: tell gtk-doc to ignore the innards
Matthias Clasen [Fri, 1 Oct 2010 02:58:50 +0000 (22:58 -0400)]
Update for recent api changes
Matthias Clasen [Fri, 1 Oct 2010 02:49:57 +0000 (22:49 -0400)]
Remove colormap api from gdk.symbols
Richard Hughes [Fri, 1 Oct 2010 11:36:57 +0000 (12:36 +0100)]
Complete the removal of GtkObject to fix make dist
Richard Hughes [Fri, 1 Oct 2010 11:36:16 +0000 (12:36 +0100)]
Complete the removal of examples/pixmap to fix make dist
Jonh Wendell [Thu, 30 Sep 2010 19:56:11 +0000 (16:56 -0300)]
Initialize private structure
William Jon McCann [Thu, 30 Sep 2010 18:42:38 +0000 (14:42 -0400)]
gail: remove obsolete select and deselect signals from MenuItem
They were removed in
3bd93e5bfd968d21cbcba15b952b254c41f204f9
Benjamin Otte [Thu, 30 Sep 2010 14:25:11 +0000 (16:25 +0200)]
dnd: Fix gtk_drag_set_icon_surface() with translucent surfaces
The code for surfaces with alpha content was apparently untested and
screwed up the signs.
Benjamin Otte [Thu, 30 Sep 2010 14:24:11 +0000 (16:24 +0200)]
gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
Benjamin Otte [Thu, 30 Sep 2010 13:50:52 +0000 (15:50 +0200)]
trayicon: Use gdk_cairo_get_clip_rectangle() to simplify code
Benjamin Otte [Thu, 30 Sep 2010 11:54:20 +0000 (13:54 +0200)]
docs: Add note about hot_x/y in gtk_drag_set_icon_surface()
Kristian Rietveld [Thu, 30 Sep 2010 07:01:11 +0000 (09:01 +0200)]
Fix GDK build on Quartz
Colin Walters [Wed, 29 Sep 2010 14:44:10 +0000 (10:44 -0400)]
introspection: Fix some annotation syntax
Benjamin Otte [Wed, 29 Sep 2010 12:12:22 +0000 (14:12 +0200)]
gtk: Fix remaining mentions of gtk_container_propagate_expose()
That includes the gtkcontainer.h header file.
https://bugzilla.gnome.org/show_bug.cgi?id=630800
Benjamin Otte [Wed, 29 Sep 2010 10:07:12 +0000 (12:07 +0200)]
gdk: Don't (un)set the background when destroying a window.
This previously caused the x11 code to do a XSetWindowBackgroundPixmap
call on a window that was about to be destroyed. And that's not really
useful.
https://bugzilla.gnome.org/show_bug.cgi?id=630864
Benjamin Otte [Wed, 29 Sep 2010 10:06:19 +0000 (12:06 +0200)]
x11: Don't set ParentRealtive if the parent's visual is different
Causes a BadMatch otherwise, see code comments.
https://bugzilla.gnome.org/show_bug.cgi?id=630864
Javier Jardón [Wed, 29 Sep 2010 04:11:13 +0000 (06:11 +0200)]
gtk-demo: remove GtkObject type
Javier Jardón [Wed, 29 Sep 2010 04:06:50 +0000 (06:06 +0200)]
examples/gtkdial/gtkdial.c: Fixing for removal of GtkObject type
Javier Jardón [Wed, 29 Sep 2010 04:01:07 +0000 (06:01 +0200)]
examples/colorsel/colorsel.c: remove unneded GTK_OBJECT cast
Javier Jardón [Wed, 29 Sep 2010 03:58:02 +0000 (05:58 +0200)]
testtext: Use gtk_widget_destroy() instead gtk_object_destroy()
Javier Jardón [Mon, 27 Sep 2010 13:10:12 +0000 (15:10 +0200)]
Remove unneded casts
As gtk_adjustment_new() returns a GtkAdjustment* now
https://bugzilla.gnome.org/show_bug.cgi?id=630731
Javier Jardón [Mon, 27 Sep 2010 12:48:26 +0000 (14:48 +0200)]
gtk_adjustment_new() should return a GtkAdjustment*
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=630731
Benjamin Otte [Tue, 28 Sep 2010 17:13:24 +0000 (19:13 +0200)]
API: remove gtk_window_set_visual()
gtk_widget_set_visual() exists now and can be used instead.
This reverts commit
59b227e1232998fdb854affc8dcd9dcd2a446b39.
Benjamin Otte [Tue, 28 Sep 2010 17:11:46 +0000 (19:11 +0200)]
testgtk: Use gtk_widget_set_visual()
Benjamin Otte [Tue, 28 Sep 2010 17:11:30 +0000 (19:11 +0200)]
trayicon: Use gtk_widget_set_visual()
Benjamin Otte [Tue, 28 Sep 2010 16:56:34 +0000 (18:56 +0200)]
API: gtk: Add gtk_widget_set_visual()
It turns out that the previous handling of just providing a way to set
visuals just on toplevels was not sufficient. In particular it
complicated the various implementations of the tray icon specification.
This patch reintroduces gtk_widget_set_visual() which behaves very
similar to GTK2's gtk_widget_set_colormap().
A future commit will remove the gtk_window_set_visual() function.
Benjamin Otte [Tue, 28 Sep 2010 16:33:23 +0000 (18:33 +0200)]
widget: Fix compile warnings: missing return value